initial commit
[AXOD IR_433MHz Shield] / FIRMWARE / make
1 #!/bin/bash
2
3 targetProjectFile=rfrx
4
5 export DEFINES="-mmcu=attiny84 -DF_CPU=16000000UL -DBOARD=1 -fno-strict-aliasing"
6
7 # export PATH=$PATH:/usr/local/avr/bin
8
9 rm *.hex *.elf
10
11 # /usr/local/avr/bin/avr-gcc
12
13 avr-gcc $DEFINES -Wall -O1 -std=gnu99 -o $targetProjectFile.o -c $targetProjectFile.c
14 avr-gcc $DEFINES -Wl,-Map=$targetProjectFile.map $targetProjectFile.o  -o $targetProjectFile.elf
15 avr-objcopy -O ihex -R .eeprom $targetProjectFile.elf $targetProjectFile.hex
16
Contact me: dev (at) shalnoff (dot) com
PGP fingerprint: A6B8 3B23 6013 F18A 0C71 198B 83D8 C64D 917A 5717